import request from '@/utils/request'

// 查询方案教学计划列表
export function listProgramTeachPlan(query) {
  return request({
    url: '/train/programTeachPlan/list',
    method: 'get',
    params: query
  })
}

// 查询方案教学计划详细
export function getProgramTeachPlan(id) {
  return request({
    url: '/train/programTeachPlan/' + id,
    method: 'get'
  })
}

// 新增方案教学计划
export function addProgramTeachPlan(data) {
  return request({
    url: '/train/programTeachPlan',
    method: 'post',
    data: data
  })
}

// 修改方案教学计划
export function updateProgramTeachPlan(data) {
  return request({
    url: '/train/programTeachPlan',
    method: 'put',
    data: data
  })
}

// 删除方案教学计划
export function delProgramTeachPlan(id) {
  return request({
    url: '/train/programTeachPlan/' + id,
    method: 'delete'
  })
}

// 根据方案ID查询课程列表
export function getCourseListByProgramId(id) {
  return request({
    url: '/train/programTeachPlan/getCourseListByProgramId/' + id,
    method: 'get'
  })
}
